import java.awt.Color;
import java.awt.Graphics;
//import java.awt.GridLayout;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JPanel;


public class Board extends JPanel implements MouseListener
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Holes[][] holes = new Holes[10][10];
	
	public Board()
	{
		this.setLayout(null);
		this.setBounds(0,0,350,350);
		this.setBackground(Color.CYAN.darker());		
	}

	public void paintComponent(Graphics g)
	{
		int y = 0;
		for (int i  = 0; i<10; i ++)
		{
			int x = 0;
			for (int j = 0; j<10; j ++)
			{
				holes[i][j] = new Holes();
				holes[i][j].setX(x);
				holes[i][j].setY(y);
				holes[i][j].setBounds(holes[i][j].getterX(),holes[i][j].getterY(),35,35);
				//System.out.println(holes[i][j].getBounds());
				this.add(holes[i][j]);
				x += 35;
				holes[i][j].repaint();
			}
			y += 35;
		}
	}
	
	public void update(Graphics g)
	{
		this.repaint();
	}
	
    public void mouseClicked(MouseEvent e) 
	{			
	}

	public void mouseEntered(MouseEvent e) 
	{	
	}

	public void mouseExited(MouseEvent e) 
	{		
	}

	public void mousePressed(MouseEvent e) 
	{	
	}

	public void mouseReleased(MouseEvent e) 
	{		
	}
}
